Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active November 24, 2026 06:13
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@bennorris123
bennorris123 / opencode-v2-guide.md
Last active November 24, 2026 06:12 — forked from mpvii/opencode-relax-beta.jsonc
OpenCode V2 config — Relax AI (Beta) provider only
@pavlenko-volodymyr
pavlenko-volodymyr / book
Last active November 24, 2026 06:09
Introduction to Mathematical Thinking
Introduction to
Mathematical Thinking
Keith Devlin
© Keith Devlin, 2012
Publisher:
Keith Devlin
331 Poe St, Unit 4
Palo Alto, CA 94301
USA
http://profkeithdevlin.com
@nanox
nanox / Alpine_UTM_Guide.md
Created November 24, 2026 05:30 — forked from ChristopherA/Alpine_UTM_Guide.md
Alpine Linux on UTM: Automation Guide

Alpine Linux on UTM: Automation Guide

A comprehensive guide to automating Alpine Linux VMs on UTM for rapid deploy-test-destroy workflows.


Document Information

Abstract: This guide documents Alpine-specific discoveries and workflows for UTM automation, focusing on P2P protocol testing, rapid iteration, and minimal resource overhead.

@qnxt
qnxt / fix73.py
Created November 24, 2026 05:42
Linux kernel 7.3 amdgpu hdmi monitor washed out color fix
#!/usr/bin/env python3
# written by gemini
import glob
import re
import subprocess
TARGET_PROPS = {"Broadcast RGB", "color format"}
for card in sorted(glob.glob("/dev/dri/card*")):
res = subprocess.run(

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.